package cn.stylefeng.guns.modular.gridsystem.mapper;

import cn.stylefeng.guns.modular.gridsystem.entity.BizDevice;
import cn.stylefeng.guns.modular.gridsystem.model.result.BizDeviceExceptionRecordResult;
import cn.stylefeng.guns.modular.gridsystem.model.result.BizDeviceResult;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 设备表 Mapper 接口
 *
 * @author ssy
 * @date 2021/09/14 11:47
 */
public interface BizDeviceMapper extends BaseMapper<BizDevice> {

    Page<BizDeviceResult> pageList(Page page, @Param("ew") LambdaQueryWrapper<BizDevice> ew);

    BizDeviceResult queryById(@Param("id") Integer id);

    List<BizDeviceExceptionRecordResult> getDeviceExecption(@Param("stationId") Integer stationId,@Param("startTime") String startTime,@Param("endTime") String endTime);
}
